<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>研发能力</title>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="./plugins/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="./css/main.css">
  <style>
    .ability-list dl {
      float:left;
      width:50%;
      margin:20px 0;
    }
    .ability-list dl dt {
      font-size: 18px;
      color: #333333;
      text-align: center;
      line-height:20px;
    }
    .ability-list dl dd {
      font-size: 14px;
      color: #666;
      text-align: center;
    }
  </style>
</head>
<body>
  <div class="content">
    <h5 class="content-title">云天化</h5>
    <div class="box">
      <div class="box-header">
        <div class="header-title">能力</div>
      </div>
      <div class="box-body">
        <div class="row">
          <div class="col">
            <div class="ability-list clearfix">
              <dl>
                <dt>517</dt>
                <dd>专利总数</dd>
              </dl>
              <dl>
                <dt>317</dt>
                <dd>有效专利总数</dd>
              </dl>
              <dl>
                <dt>57</dt>
                <dd>行业平均专利数</dd>
              </dl>
              <dl>
                <dt>123</dt>
                <dd>近一年有效专利新增数 </dd>
              </dl>
              <dl>
                <dt>317.21</dt>
                <dd>Top5专利价值(万元)</dd>
              </dl>
            </div>
          </div>
          <div class="col">
            <div class="chart" id="chart1" style="height:300px;"></div>
          </div>
          <div class="col">
            <div class="chart" id="chart2" style="height:300px;"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">专利总数趋势</div>
          </div>
          <div class="box-body">
            <div class="chart" id="bar1" style="height:260px;"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">研发支出vs专利数量</div>
          </div>
          <div class="box-body">
            <div class="chart" id="line1" style="height:260px;"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="plugins/jquery/jquery.min.js"></script>
  <script src="js/echarts.js"></script>
  <script>
   $(function () {
      var data = [{
          value: 2345,
          name: 'A股'
        },
        {
          value: 3455,
          name: 'B股'
        },
        {
          value: 5000,
          name: '海外股'
        },
        {
          value: 2700,
          name: '三板股'
        },
        {
          value: 4000,
          name: '优先股'
        }
      ]
      var myChart = echarts.init(document.getElementById('chart1'));
      let colors = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var option = {
        color:colors,
        tooltip: {
          trigger: 'item'
        },
        legend: {
          left: 'center',
          bottom:30,
          orient: 'vertical',
          icon: 'rect',
          itemWidth: 6,
          itemHeight: 6,
          align: 'auto',
          // data:data,
          formatter: function (params, index) {
            for (var i = 0; i < data.length; i++) {
              if (params == data[i].name) {
                // return `${params}${data[index].value}`
                return params + '    ' + data[i].value + '%'
              }
            }

          }
        },
        series: [{
          name: '',
          type: 'pie',
          radius: ['30%', '45%'],
          center: ['50%', '25%'],
          avoidLabelOverlap: false,
          symbolSize: 1,
          symbol: 'circle',
          smooth: true,
          showSymbol: false,
          itemStyle: {
            borderColor: '#fff',
            borderWidth: 2,
            color: function (params) {
              return colors[params.dataIndex]
            }
          },
          label: {
            show: false,
            position: 'center'
          },
          emphasis: {
            label: {
              show: false,
              fontSize: '40',
              fontWeight: 'bold'
            }
          },
          labelLine: {
            show: false
          },
          data: data
        }]
      };
      myChart.setOption(option);
      window.top.chartsList && window.top.chartsList.push(myChart)
    })  
   $(function () {
      var data = [{
          value: 23455,
          name: 'A股'
        },
        {
          value: 3435,
          name: 'B股'
        },
        {
          value: 50000,
          name: '海外股'
        },
        {
          value: 27000,
          name: '三板股'
        },
        {
          value: 4000,
          name: '优先股'
        }
      ]
      var myChart = echarts.init(document.getElementById('chart2'));
      let colors = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var option = {
        color:colors,
        tooltip: {
          trigger: 'item'
        },
        legend: {
          left: 'center',
          bottom:30,
          orient: 'vertical',
          icon: 'rect',
          itemWidth: 6,
          itemHeight: 6,
          align: 'auto',
          // data:data,
          formatter: function (params, index) {
            for (var i = 0; i < data.length; i++) {
              if (params == data[i].name) {
                // return `${params}${data[index].value}`
                return params + '    ' + data[i].value
              }
            }

          }
        },
        series: [{
          name: '',
          type: 'pie',
          radius: ['30%', '45%'],
          center: ['50%', '25%'],
          avoidLabelOverlap: false,
          symbolSize: 1,
          symbol: 'circle',
          smooth: true,
          showSymbol: false,
          itemStyle: {
            borderColor: '#fff',
            borderWidth: 2,
            color: function (params) {
              return colors[params.dataIndex]
            }
          },
          label: {
            show: false,
            position: 'center'
          },
          emphasis: {
            label: {
              show: false,
              fontSize: '40',
              fontWeight: 'bold'
            }
          },
          labelLine: {
            show: false
          },
          data: data
        }]
      };
      myChart.setOption(option);
      window.top.chartsList && window.top.chartsList.push(myChart)
    })  
   $(function () {
      // 同业毛利率
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('bar1'))
      var xData = ['2020/01', '2020/02', '2020/03', '2020/04', '2020/05', '2020/06']
      var option = {
        legend: {
          icon: 'circle',
          bottom: 10,
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              // color: ''
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '40',
          right: '40',
          top: '18%',
          bottom: '25%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '净利润（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '股利支付率（%）',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "净利润（万元）",
          "type": "bar",
          "barWidth": "15",
          "data": [600, 200, 100, 240, 70, 40],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
                  offset: 0,
                  color: '#2b9ff8',
                },
                {
                  offset: 1,
                  color: '#18d4e7',
                },
              ])
            }
          }
        }, {
          name: '股利支付率（%）',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [1, 10, 15, 22, 38, 20],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })

    $(function () {
      // 同业毛利率
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('line1'))
      var xData = ['2020/01', '2020/02', '2020/03', '2020/04', '2020/05', '2020/06']
      var option = {
        legend: {
          icon: 'circle',
          bottom: 10,
          right: 'center',
          itemWidth: 6,
          itemGap: 20,
          textStyle: {
            color: '#556677'
          }
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              // color: ''
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '40',
          right: '40',
          top: '18%',
          bottom: '25%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '(万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '(个)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'left'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "研发支出（万元）",
          "type": "line",
          "barWidth": "15",
          "data": [600, 200, 100, 240, 70, 40],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
                  offset: 0,
                  color: '#2b9ff8',
                },
                {
                  offset: 1,
                  color: '#18d4e7',
                },
              ])
            }
          }
        }, {
          name: '专利数量',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [1, 10, 15, 22, 38, 20],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })
  </script>
</body>
</html>